﻿@{
    ViewBag.Title = "后台登陆";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@model Entity.Admin.User
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@{Html.RenderPartial("Navbar");}
<h2>
    后台登陆</h2>
@Html.ValidationSummary(true, "登录不成功。请更正错误并重试。")
@using (Html.BeginForm())
{
    @Html.LabelFor(m => m.UserName)
    @Html.TextBoxFor(m => m.UserName)
    @Html.ValidationMessageFor(m => m.UserName)
    @*<input value="" name="UserName" />*@
    @Html.LabelFor(m => m.Password)
    @Html.PasswordFor(m => m.Password)
    @Html.ValidationMessageFor(m => m.Password)
    @Html.CheckBox("RememberMe")
    @Html.Label("RememberMe", "记住登录")
    
    <input type="submit" value="LogOn" />
}
